package facilius.controller.decorator.aula;

import facilius.model.pojo.Aula;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import org.displaytag.decorator.TableDecorator;

/**
 *
 * @author Graciano
 */
public class AulaDecorator extends TableDecorator {

    public String getData() {
        Object aula = this.getCurrentRowObject();
        String resp = "";
        if (aula instanceof Aula) {
            resp = converteData(((Aula) aula).getData());
        }

        return resp;
    }

    private String converteData(java.util.Date dtData) {
        SimpleDateFormat out = new SimpleDateFormat("dd/MM/yyyy");
        return out.format(dtData);
    }
}
